import { setStorage, getStorage } from '@/utils/storage'

export default {
    namespaced: true,
    state() {
        return {
            token: getStorage('token'),
        }
    },
    mutations: {
        setToken(state, token) {
            state.token = token;
            setStorage('token', token);
        }
    },
    actions: {

    },
    getters: {

    }
}